473,387 Members | 1,619 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,387 software developers and data experts.

Part Image from DB

I have pictures on DB. (use 1.1 framework)

When use

Response.ContentType = "Image/Gif'

Response.OutputStream.Write(DR("Pic_Data"), 0, DR("Pic_Size"))

I see that image.

I want get width this picture or part of this picture.

I found example :

Dim stmFile As New MemoryStream

Dim pic As System.Drawing.Image

....

stmFile.Write(DR("Pic_Data"), 0, DR("Pic_Size"))

pic = System.Drawing.Image.FromStream(stmFile)

Response.ContentType = "Image/Gif"

pic.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Gif)

I got error on line : pic = System.Drawing.Image.FromStream(stmFile)

"invalid parameter used".

Where is my error?


Nov 19 '05 #1
0 798

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

Similar topics

0
by: mike kreiner | last post by:
I'm using the convolve2d(image, mask) function from scipy to blur an image. The image I'm using is 512 by 384. When I display the image that convolve2d returns, the the left-most square of pixels...
1
by: Vangelis Natsios | last post by:
I want to create a page with a scrolling image that will cause different messages to appear on another part of the page (say, another <div>) as the image will scroll. Imagine something like this: ...
4
by: jr | last post by:
Hi, I need to place a part from an existing image into an other image control. How can I do this. ex image is 300X300 picels split it into 3X3 and I need the middle rectangle
1
by: ray well | last post by:
hi, i need to give the user the ability to extract a rectangular area of their choice from a graphic displayed in a picture box to the clipboard, so they can use it elsewhere. say the graphic...
6
by: Zhenzhong Xu | last post by:
I am using ASP 2.0 and trying to put a image in the web part title bar instead of using a text title. Is there any way to get this done? Thanks in advance. Zhenzhong
0
by: Rain | last post by:
how do i place a button control on a certain part(using coordinates) in an image... in short, i want the functions of a button in a certain part of a image that in going to be placed in a form in...
1
by: Udhay | last post by:
Hai I am new to C#. I am cutting a part of an image from the picturebox and i want to pass the part of the clipped image as a parameter to do image processing.The parameter is input image...
4
by: Pacino | last post by:
Hi, everyone, I am wondering whether it's possible to read part (e.g. 1000*1000) of a huge jpeg file (e.g. 30000*30000) and save it to another jpeg file by pure python. I failed to read the...
12
by: laredotornado | last post by:
Hi, I'm using PHP 5. I was wondering given an image, a.jpg, how can I make an image that would look like you slid a white index card (which I have a file, white.jpg with the same dimensions as...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.