I am reading the file system for media files.
Now i want to read a particular media file(audio/video or pic) and store it in byte array(B64 converted) .
When i try doing it using inputStream, i always get outofMemoryException because the media file size is big.
Is there a mechanism(or code) where in i can give the inputstream on media and it can be done in chunks i.e. some B64 utility which can take inputstream and populate byte out of it ..and also take care of big size.