473,406 Members | 2,707 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,406 software developers and data experts.

saving pictures

how do i open, save and retrieve pictures? with mySQL as my database.

--
Message posted via http://www.dotnetmonster.com

Jul 22 '08 #1
4 1154
To load a Picture
Using MyImage As Bitmap = Bitmap.FromFile("C:\Temp\MyImage.BMP")

Draw on it with
Using g as Graphics = Graphics.FromImage(MyImage)

and then use g.DrawLine, g.DrawString etc

Use .Save to save the image.

To read/write the image to a database, use a BLOB field, and the Stream
versions of .Save and .Load

--
David Streeter
Synchrotech Software
Sydney Australia
"enrico via DotNetMonster.com" wrote:
how do i open, save and retrieve pictures? with mySQL as my database.

--
Message posted via http://www.dotnetmonster.com

Jul 22 '08 #2
P.S. I've been working on this article at wikibooks:
http://en.wikibooks.org/wiki/Visual_Basic_.NET/GDI%2B
--
David Streeter
Synchrotech Software
Sydney Australia
"enrico via DotNetMonster.com" wrote:
how do i open, save and retrieve pictures? with mySQL as my database.

--
Message posted via http://www.dotnetmonster.com

Jul 22 '08 #3
enrico via DotNetMonster.com wrote:
how do i open, save and retrieve pictures? with mySQL as my database.
Unless you need to draw on the image, you should treat the image file
just like any other binary file.

http://www.google.se/search?q=mysql+store+file

--
Göran Andersson
_____
http://www.guffa.com
Jul 22 '08 #4
Enrico,

See these samples, be aware that saving a image to an SQL column is terrible
slow.

http://www.vb-tips.com/DataSetImage.aspx

In version SQL server 2008 is made some extra to save the images to disk,
while virtual urls are placed to that in a column in the tables.

You can do that in a way of course as well in all SQL servers before 2008.

Cor

"enrico via DotNetMonster.com" <u41845@uweschreef in bericht
news:878087ce0c73d@uwe...
how do i open, save and retrieve pictures? with mySQL as my database.

--
Message posted via http://www.dotnetmonster.com
Jul 22 '08 #5

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

Similar topics

6
by: James | last post by:
when i right click and try to save a picture from my web site it some times defaults the name and file type to 'unknown' bmp. the file is really a jpeg that i am using the .binarywrite to display...
0
by: Mattias | last post by:
I'm saving pictures on my harddrive from our webcam with GetResponseStream() .. Everything works fine, but after approximately 1h identical images are being saved. I checked the webpage but those...
1
by: adolph | last post by:
Using Access2000, I would like to resize an image then save it to a new file with the resized size. I'm taking pictures (JPGs) with my digitial set at 3.2 megs. I've figured out how to get my...
2
by: Peder Y | last post by:
My code is something like this: --------------- Image img = Image.FromFile("somefile.bmp"); FileStream fStream = new FileStream("someBinaryFile.dat"); BinaryWriter bw = new...
6
by: Brad Allison | last post by:
I am using a small Access database as the back end of a VB .NET program. I am not a newbie to Access, but I have never had the need to store pictures until now. I have a field in a Master table...
5
by: TheGanjaMan | last post by:
Hi everyone, I'm trying to write up a simple image stamper application that stamps the Exif date information from the jpegs that I've taken from my digital camera and saves the new file with the...
4
by: public2 | last post by:
Hi. This is my first post, and is about an assignment I've at my college. An overall description: We have to make a function, with one argument, the URL. then we have to search the HTML code...
3
by: JM | last post by:
Before storing information from a form in database I perform follwing operations on it : $path = mysql_real_escape_string(strip_tags(trim(urldecode($_POST)))); $summary =...
6
by: Eddie | last post by:
Hi all, I am displaying a number of reports, and giving the users an option to display them on the web or download them to Excel. If they want the Excel file, I just use the PHP header command...
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: 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
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.