i have a image which i am picking from open file dialog now i want to save image in my project folder
please hep me
View Complete Post
I have a piece of code that writes string into an image and save it. It works on one of my site and but not the other. The image.save is not working. If this is a permission problem, which account should I change? I use win server 2003 and IIS 6, and have given ASPNET, NETWORK SERVICE, and anonymous user write access.
Getting following error:A generic error occurred in GDI+.
Any help is appreciated.
Public Sub SaveImageFile(ByVal sourceImage As Bitmap, ByVal saveImagePath As [String], ByVal maxImageWidth As Integer)
' Resize if source image width is greater than the max:
If sourceImage.Width > maxImageWidth Then
Dim bmp As Bitmap = TryCast(sourceImage, Bitmap)
Dim newImageHeight As Integer = CInt(Math.Truncate(sourceImage.Height * (CSng(maxImageWidth) / CSng(sourceImage.Width))))
Dim gr As Graphics = Graphics.FromImage(bmp)
Dim bmpnew As New Bitmap(maxImageWidth, newImageHeight)
gr.InterpolationMode = InterpolationMode.HighQualityBicubic
gr.DrawImage(bmpnew, 0, 0, maxImageWidth, newImageHeight)
'code to manipulate bmpNew goes here.
I have an InfoPath web-enabled form in MOSS 2007, that is integrated with a K2 blackpoint process for an approval workflow.
Once the form (a Purchase Order request form) has been approved in the K2 workflow process, I switch the form view to a "print-friendly" view for the requestor to view from the browser. However, now I need to go one step further with this scenario:
1) I need to somehow insert/embed an image with the scanned-in signature of the approver (likely stored in a SP doc library) at the signature line section of my form. Also, what are the security requirements for storing such images, but not granting
all users access to these (e.g. only services accounts that need to access this for embedding into the form, etc.)?
2) Then I need to convert this final "print-friendly" view of the form (with the signature image) to a PDF document so that I can store it in SharePoint (and email it to the requestor using K2's email event capabilities).
Can anyone help me with a solution to both of these requirement, or point me to some resources for this (even 3rd party components are open-game).
i don't know why when i save the same picture to the same directory,it causes the error message: "A generic error occred in GDI+"??????
but if i change another picute to save , it works properly
my code is as belows:
Image img = Image.FromFile(this.picBox2.ImageLocation.ToString());
how can i prevent this error when i save the same picture?
I have a report builder built on RB2.0. Users are able to create their reports and browse them.
Now, Users wants these reports to be saved in their Private folder and public folder.
Also, I have a UI developed in .Net 3.5 from where I am calling this report builder.
In the UI, I need to show the users those reports that they have created in a drop down list. And when the user clicks on any report (that they created should) open.
I have searched a lot but not getting any clue how to allow the business user to save a report
I'm searching an answer to this question on the web for 2 weeks unsuccessfully.
I'm sure I'm not the only one to wondering about that!
I have two web projects MVC2: a FrontOffice and a BackOffice.
The user has to be able to upload some image in the BackOffice, which will be display on the FrontOffice and vice versa.
How can I share an image folder between these two projects?
Has the folder to be necessary in the solution or can it be somewhere else on the server?
My team and I are working with TFS.
I want to create an image folder in which we can write and read from frontoffice and backoffice.
But I don't want to have to do a "get latest version" everytime
someone is adding an image in the folder. I would like to create a
folder on the server we can access from the backoffice AND the
frontoffice with reading and writing rights in real
I'm not sure to be very clear...
hello friends...please help me to solve this problem....
i have created crud (create, retive, update and delete)form and it's running... here i want to add images for each record(sql database)....
i'm using image datatype in sql table for picture.....
Q 1: how to save and retrive binary data(image) from sql table in asp.net form using vb coding?
Q2: can i create sql table which store binary(image url) data direct?
Does anyone know of a solution to save a clipboard image as an attachment (jpg) to a New Form? Basically the ability to save screenshots as an attachment.