Click here to Skip to main content
15,902,276 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: querystring problem Pin
Prasanna Kumar Pete12-Oct-08 23:43
Prasanna Kumar Pete12-Oct-08 23:43 
GeneralRe: querystring problem Pin
Miss Maheshwari12-Oct-08 23:48
Miss Maheshwari12-Oct-08 23:48 
GeneralRe: querystring problem Pin
Prasanna Kumar Pete12-Oct-08 23:54
Prasanna Kumar Pete12-Oct-08 23:54 
GeneralRe: querystring problem [modified] Pin
Miss Maheshwari13-Oct-08 0:19
Miss Maheshwari13-Oct-08 0:19 
GeneralRe: querystring problem Pin
Prasanna Kumar Pete13-Oct-08 0:26
Prasanna Kumar Pete13-Oct-08 0:26 
QuestionNUnitASP Pin
sowmya k12-Oct-08 22:52
sowmya k12-Oct-08 22:52 
AnswerRe: NUnitASP Pin
N a v a n e e t h13-Oct-08 2:44
N a v a n e e t h13-Oct-08 2:44 
QuestionConvert EPS to Png using c# Pin
Imran Khan Pathan12-Oct-08 21:23
Imran Khan Pathan12-Oct-08 21:23 
Hi friends.

I have a bit problem here.
below code generate image from jpg to png but not working with eps.

protected void Page_Load(object sender, EventArgs e)
    {
        string path = Server.MapPath(Request.QueryString["Path"]);
        byte[] by = FileToArray(path);
        MemoryStream ms = new MemoryStream(by, 0, by.Length);
        ms.Write(by, 0, by.Length);
        System.Drawing.Image img = Bitmap.FromStream(ms);
        // I am getting error in above line when reads eps file
        // Error : Parameter is not valid
        ms.WriteTo(Response.OutputStream);
    }
    public byte[] FileToArray(string sFilePath)
    {
        System.IO.FileStream fs = new System.IO.FileStream(sFilePath,
            System.IO.FileMode.Open, System.IO.FileAccess.Read);
        System.IO.BinaryReader br = new System.IO.BinaryReader(fs);
        Byte[] bytes = br.ReadBytes((Int32)fs.Length);
        br.Close();
        fs.Close();
        return bytes;
    } 


Thanks

Regards
kHan

please don't forget to vote on the post that helped you.

AnswerRe: Convert EPS to Png using c# Pin
q2006x18-Dec-09 4:16
q2006x18-Dec-09 4:16 
QuestionOptimizing Html Code Pin
Syed Ali Raza12-Oct-08 21:19
Syed Ali Raza12-Oct-08 21:19 
AnswerRe: Optimizing Html Code Pin
whatUrunning.com12-Oct-08 22:25
whatUrunning.com12-Oct-08 22:25 
AnswerRe: Optimizing Html Code Pin
Syed Ali Raza12-Oct-08 23:29
Syed Ali Raza12-Oct-08 23:29 
AnswerRe: Optimizing Html Code Pin
Mark Churchill13-Oct-08 0:13
Mark Churchill13-Oct-08 0:13 
AnswerRe: Optimizing Html Code Pin
N a v a n e e t h13-Oct-08 2:49
N a v a n e e t h13-Oct-08 2:49 
QuestionTextbox type Password error with Update Panel Pin
gautamamit812-Oct-08 21:14
gautamamit812-Oct-08 21:14 
AnswerRe: Textbox type Password error with Update Panel Pin
sumit703412-Oct-08 22:22
sumit703412-Oct-08 22:22 
GeneralRe: Textbox type Password error with Update Panel Pin
gautamamit812-Oct-08 22:25
gautamamit812-Oct-08 22:25 
GeneralRe: Textbox type Password error with Update Panel Pin
sumit703412-Oct-08 22:30
sumit703412-Oct-08 22:30 
AnswerRe: Textbox type Password error with Update Panel Pin
eyeseetee12-Oct-08 22:40
eyeseetee12-Oct-08 22:40 
GeneralRe: Textbox type Password error with Update Panel Pin
gautamamit812-Oct-08 22:57
gautamamit812-Oct-08 22:57 
GeneralRe: Textbox type Password error with Update Panel Pin
eyeseetee12-Oct-08 23:07
eyeseetee12-Oct-08 23:07 
Question[Message Deleted] Pin
raghvendrapanda12-Oct-08 20:52
raghvendrapanda12-Oct-08 20:52 
AnswerRe: how to create a transaction... Pin
Anand Desai12-Oct-08 20:57
Anand Desai12-Oct-08 20:57 
AnswerRe: how to create a transaction... Pin
Ashfield12-Oct-08 21:21
Ashfield12-Oct-08 21:21 
QuestionUnable to inherit WebFormTestCase Class Pin
sowmya k12-Oct-08 20:14
sowmya k12-Oct-08 20:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.