User Profile
Collapse
-
Don't worry I've sorted it out myself, I will post the code when i have prettied it up. -
After some more work I've come up with this, it doesn't come up with an error at run time, and when i check the database there is data in it and the size of the file has decreased, but the image doesn't display, the other images in the database the were uploaded with the original file work fine.
The code of the updated file is below.
Code:<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1"
Leave a comment:
-
Resize image from postef file without saving to disk VB.net?
Hi,
I've just made the change from ASP to .net.
I have a file (code below) that saves a user submitted file to a MS SQL 2005 database. It collects the file name, file size, file type, and lastly the binary data for the file.
I can sucessfully take the files out of the databse again and display them in a data grid.
I would like to resize the submitted file to a fixed size (say 180 x 120) before I upload it to the database... -
-
-
Is it hard to modify this exmple to retrieve images sucessfuly stored in the db and display them in the datagrid as well?Leave a comment:
-
In Addition to the above, I can also get the file and display it using the following code.
Code:<script language="VB" runat="server"> Private Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Dim ImageID As Integer = cint(Request.QueryString("ImageID")) Dim strConnection As String = "Provider=SQLOLEDB;Driver={SQL Server};Server=xxx;Database=xxx;uid=xxxr;pwd=xxx;"
Leave a comment:
-
VB.NET WEB Display images stored in sql 2005 in datagrid?
Hi,
I need to display images and other record information retrieved from an SQL 2005 database in a datagrid on a web page. I'm coding in VB .net I have recently changed over from VB ASP and i'm still getting used to .net
I can successfully upload images and other data into the SQL Database, I'm currently storing RecordID, File Name, Type of File (mime), File Size, and File Data.
I can retreive non binary data...
No activity results to display
Show More
Leave a comment: