473,388 Members | 1,188 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

retreive image from database

Hi! I have a dataset where I have a field that is a image. I can't figure
out how to retreive the imahe, I get the invalid paranmeter with this
code...

Try

Dim buffer() As Byte = CType(dstPlant.Tables("plant").Rows(intRow)("image "),
Byte())

'create memory stream from this array of bytes

Dim mstImage As New MemoryStream(buffer)

'set the image property of the picture box to the image in the stream

file.pictFile.Image = Image.FromStream(mstImage)

Catch ex As Exception

MessageBox.Show("KJHKJHKJH" + ex.Message.ToString)

End Try

anyone can help me?
Nov 21 '05 #1
1 1284
Hi,

http://www.windowsformsdatagridhelp....d-253a1ec85fc3

Ken
----------------------
"Jean Christophe Avard" <NO***@M.BITCH> wrote in message
news:ed****************@TK2MSFTNGP15.phx.gbl...
Hi! I have a dataset where I have a field that is a image. I can't figure
out how to retreive the imahe, I get the invalid paranmeter with this
code...

Try

Dim buffer() As Byte = CType(dstPlant.Tables("plant").Rows(intRow)("image "),
Byte())

'create memory stream from this array of bytes

Dim mstImage As New MemoryStream(buffer)

'set the image property of the picture box to the image in the stream

file.pictFile.Image = Image.FromStream(mstImage)

Catch ex As Exception

MessageBox.Show("KJHKJHKJH" + ex.Message.ToString)

End Try

anyone can help me?

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Lee | last post by:
Hello, This is a genral enquiry before I send out a more detailed request. I am unable to retreive image files from a mysql database using IE 5.2 on the mac OS X platform. I have built a...
3
by: AlexGreif.2609394 | last post by:
Hi, I looked at the PIL Image class but cannot see a posibility to retreive the image resolution dots per inch (or pixels per inch) Could somebody please tell me how to get these metadata infos...
2
by: Anitha | last post by:
Hi All, How to retrieve images stored in Access database. I am storing images(jpeg) as OleObject. I want display them on my web page. I am unable to do so.Please help me I am using C# The code...
1
by: Sudhakara.T.P. | last post by:
Hi, I have an application in VB.NET windows application, wherein the administrator has the option to change the authentication mode ie., whether the application should work as a normal database...
1
by: davemcdonald | last post by:
ASP Javascript (Dreamweaver) insert and retreive Primary Key -------------------------------------------------------------------------------- Been pulling my hair out all week. I am working on...
4
by: AkMaLiTo | last post by:
hi... i am in a mess, i need to use visual basic 6 with sql server 2000 database.. could someone tell me the best component to use with sql ? the project is as follow: retreive table names in a...
6
n8kindt
by: n8kindt | last post by:
i have linked a mySQL database (that populates data in our webstore) with my Access 2007 database. i want to be able to see the images in access also. however, i only have a referring url to work...
0
by: lathamoulali | last post by:
Hello, I have a MSCHart Control in VB.NET and i have copied the Chart to Clipboard .. Now i want to retreive the image and save it as a bitmap... But i am unable to do this as i am getting an...
2
by: rajujrk | last post by:
Hi All, I have a problem on retreiving the Label of selected ImageItem in J2ME. Below one is my Code.. import javax.microedition.lcdui.Alert; import javax.microedition.lcdui.AlertType;...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.