Hello, I would like to use some sample code I found to remove Exif meta data from images users upload with my file upload control on a form. Want to remove orientation info but also data that pertains to privacy. My problem is that Im not a good enough programmer
to know how to implement this. If I'm using a file upload control on one form, how do I call this class from another form in my project given the parameters? Help appreciated. Thanks. Example code here:
Imports System.IO
Namespace ExifRemover
Public Class ExifClass
Inherits System.Web.UI.Page
'Public Class JpegPatcher
Public Function PatchAwayExif(inStream As Stream, outStream As Stream) As Stream
Dim jpegHeader As Byte() = New Byte(1) {}
jpegHeader(0) = CByte(inStream.ReadByte())
jpegHeader(1) = CByte(inStream.ReadByte())
If jpegHeader(0) = &HFF AndAlso jpegHeader(1) = &HD8 Then
...
Go to the complete details ...