c# - Pointing To Android Directory -


i trying convert image byte using c# , parsing byte web service have line of code can't right. trying point phone's storage path, pictures in device , can't seem correct path.

byte[] imagebyte = environment.getexternalstoragedirectory().getpath( "famscanner\\vehicle_{0}.jpg"); 

i'd suggest converting image bitmap object first. because way can use following answer similar question.

link answer

to create bitmap object you'll need path image file first , create that:

bitmap bitmap = bitmapfactory.decodefile(pathtoimage) 

Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -