lehoangdung posted on November 14, 2009 18:45

In my portal project, I save the bitmap file into SQL Server as a byte array, so to convert the byte array from SQL Server to bitmap, I must implement some function, this is some ways I found on the internet:

Method 1: Unsafe methods, using Marshal class

 

Method 2: Using a memory stream (I like this way)

 

Please kick it if you feel interested! :)

Digg It!DZone It!StumbleUponTechnoratiRedditDel.icio.usNewsVineFurlBlinkList

Posted in: .NET , GDI+, DirectX  Tags:

Page List

    Calendar

    «  September 2010  »
    MoTuWeThFrSaSu
    303112345
    6789101112
    13141516171819
    20212223242526
    27282930123
    45678910
    View posts in large calendar

    Recent Comments

    Disclaimer
    The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

    © Copyright 2010 SFI.VN Team