Article View: borland.public.csharpbuilder.language.csharp
Article #45Re: Converting byte[] to bitmap
From: Marc Rohloff TeamB
Date: Fri, 26 May 2006 13:00
Date: Fri, 26 May 2006 13:00
17 lines
1783 bytes
1783 bytes
On Fri, 26 May 2006 13:14:38 +0100, Mick wrote: > I am loading a jpeg byte[] from a database and i am trying to load this into > a bitmap object wher i can resize it. I can do this by copying the byte[] to > a file and using the standard bitmap load from file functions; > > Is there a way I can do this without having to goto to the disk? I assume you mean load it from a file using the constructor? You should be able to use a MemoryStream which accepts a byte[] in its constructor and then pass this Stream to the constructor of your Bitmap. -- Marc Rohloff [TeamB] marc rohloff -at- myrealbox -dot- com
Technical Details
Message-ID:
<1xxx3grz8ki2o$.dlg@dlg.marcrohloff.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4476f12d$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,7404b6c94d2abff X-Google-Attributes: gid1efe35,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Marc Rohloff [TeamB]" <"on request"> Subject: Re: Converting byte[] to bitmap Newsgroups: borland.public.csharpbuilder.language.csharp User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit References: <4476f12d$1@newsgroups.borland.com> Date: Fri, 26 May 2006 09:00:20 -0400 Message-ID: <1xxx3grz8ki2o$.dlg@dlg.marcrohloff.com> X-Face: "huzh55Xi]!ZNni78>a*5+).`SK?<^q2MlHk-C]Z2M9T@\J5ZCB$95Ey+s"XQuhGFA[eutZ :0^AV!Q;t>gE`1-=8d;HZ6~*o1dH<X9\b$!|(}+I'!Xq)@3Op}%0ArW&nf'Qh*EwR X-Antivirus: avast! (VPS 0621-4, 05/26/2006), Outbound message X-Antivirus-Status: Clean NNTP-Posting-Host: 65.31.1.121 X-Trace: newsgroups.borland.com 1148648414 65.31.1.121 (26 May 2006 06:00:14 -0700) Lines: 17 X-Authenticated-User: mrohloff Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail