Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. BlackRed

    combo box getting a PK from a selected item

    Any chance you can post the code for your combo-box as well? I'm not sure why ClientID wouldn't correspond to Name if you're binding it with .DataBind()
  2. BlackRed

    How to resize image from memorystream to file?

    You know what folks, never mind! My dumb-ass fault; I wasn't server.mappathing my filename, so this didn't work: imgPhoto.Save(sbFileName.ToString, System.Drawing.Imaging.ImageFormat.Jpeg) But this does: imgPhoto2.Save(Server.MapPath(sbFileName.ToString)...
  3. BlackRed

    How to resize image from memorystream to file?

    Hello, I have some images stored in a database, but they are all rather large in dimensions (some are 3000px wide!), and I want to resize them and save them to disk the first time they are requested so my website is not pulling out these massive images every time. I can pull out the images...
  4. BlackRed

    Firing events from nested gridview within repeater?

    I found this page which details how to do it using a DataList so I'll go down that route: http://www.informit.com/articles/article.asp?p=173410&seqNum=2&rl=1
  5. BlackRed

    Firing events from nested gridview within repeater?

    Hi, I've done this before and for the life of me I can't remember how! Basically I have a Gridview inside a repeater, and I want to handle the events from the gridview (Edit, Delete etc.) in the codebehind but I can't remember how! Here is my repeater... <asp:Repeater ID="rptrSections"...
  6. BlackRed

    Uploading Binary Data to Database (mySql or SQL Server)

    OK, The problem with the second problem was this line: .Add(New SqlParameter("@Data", SqlDbType.Image, 16)).Value = Data I changed it to: .Add(New SqlParameter("@Data", SqlDbType.Image)).Value = Data And it works! Thanks for all your help.
  7. BlackRed

    Uploading Binary Data to Database (mySql or SQL Server)

    OK, I managed to persuade the client to switch over to SQL Server 2000 now, so while they're doing that I changed my upload function, but I'm still having a problem. Now, instead of inserting "System.Byte[]" as binary, it's just putting in the beginning of the PDF: "%PDF-1.4 %????" So, I'm a...
  8. BlackRed

    Uploading Binary Data to Database (mySql or SQL Server)

    Rob, If it was my choice I'd be using Sql Server 2005 ;) The site will be hosted on the clients network and they already have sites using mysql 3 so they're a bit nervous about upgrading just now. I did request that they run MySql 5 alongside MySql 3 but this would involve their IT dept doing...
  9. BlackRed

    Uploading Binary Data to Database (mySql or SQL Server)

    by the way, thanks NoCoolHandle and PGoRule for the Sql examples, but I'm not sure when we'll be converting to that.
  10. BlackRed

    Uploading Binary Data to Database (mySql or SQL Server)

    Thanks for patronising me chrissie1, much appreciated. Actually i did search the site and didn't find anything - if you know where I can find an example to insert binary data from .NET to MySql then point me in the direction. I can't use stored procedures because the version of mysql I have to...
  11. BlackRed

    Uploading Binary Data to Database (mySql or SQL Server)

    Sorry there's an error in my initial post, where it says "ByVal Data As String" it is actually "ByVal Data As Byte()". So I am passing the data through as a byte array, but it's inserting it as a string. I'm not using SQL Server either, it's MySql at the moment, and does it matter that the...
  12. BlackRed

    Uploading Binary Data to Database (mySql or SQL Server)

    Hi, I'm trying to upload a PDF and store it in a database. At the moment we're using mySql but we have plans to change to SQL in the future. I've currently got a function that takes the Binary data as a Byte array, but at the moment when it inserts it it inserts the string "System.Byte[]" in...

Part and Inventory Search

Back
Top