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()
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)...
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...
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
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"...
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.
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...
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...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.