Search Result

Collapse
2 results in 0.0045 seconds.
Keywords
Members
Tags
bytearray
  •  

  • Convert tiff bytes array to pdf bytes array using itextsharp

    Hi All,

    I am using fileupload control to save a tiff and PDF files in SQL database. I am saving the file in byte format.

    I am using the below code to display in PDF file where the byte array is a original PDF byte array stream.

    Code:
     
    byte[] image;             
    dr = cmd.ExecuteReader();             
    dr.Read();            
    image = ((byte[])dr["DocImage"]);
    Response.Clear();
    ...
    See more | Go to post
    Last edited by kvlkarthik; Mar 23 '11, 12:44 PM. Reason: formatting the content

  • How to get mime type of a document from the Byte array using Java?

    Hi,

    I need to know how to get the Mime type of a Document from the Byte array. I'm not having file name of file extension. I have only Byte array of a document.

    To be more specific, Using the binary of a docuement, I need to find whether it is MS Word or MS Excel and so on.


    Please tell me is there a way to find it in Java.

    Thanks in advance
    Bharath
    See more | Go to post
Working...