Android Question how to readfrom stream and return bmp round image

Discussion in 'Android Questions' started by Makumbi, Jun 28, 2019.

  1. Makumbi

    Makumbi Active Member Licensed User

    this codes save the image very well but my biggest problem is returning what has been saved in the stream to round bmp please help

    More also i would want to save these files with account Numbers so that the app first checks if a particular image files exists then read it else it should create it thanks in advance

    Sub SavePhoto (Pt As Bitmap,NewFile As String)
    Dim Out As OutputStream
        Out = 
    File.OpenOutput(File.DirInternal, NewFile, False)
    End Sub
    below is the code i wanted to read the stream and then return the image as a round image
    Dim InputStream1 As InputStream
                                InputStream1 = 
    File.OpenInput(File.DirInternal, "Test.png")
    Dim OutputStream1 As OutputStream
    File.Copy2(InputStream1, OutputStream1)
  2. Brandsum

    Brandsum Active Member Licensed User

    Why do you want to use input stream when you have that bitmap in Pt variable. After saving just use that bitmap to create a rounded one and use as you want.
    mangojack likes this.
  3. Erel

    Erel Administrator Staff Member Licensed User

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice