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.
to create bitmap object you'll need path image file first , create that:
bitmap bitmap = bitmapfactory.decodefile(pathtoimage)
Comments
Post a Comment