---
title: "LosslessJpegTransform..::.Write Method (Stream)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_LosslessJpegTransform_Write_1_bca7c9fe.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# LosslessJpegTransform.Write Method (Stream)
 
Writes the JPEG file to the specified stream without changes.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub Write ( _stream As Stream _
)
```
 
```csharp
public void Write(Stream stream
)
```
 
### Parameters
 
 - stream
     - Type: [System.IO.Stream](http://msdn2.microsoft.com/en-us/8f86tw9e)
The stream where you want to save the result.
 
## Remarks
  
You can use this method to edit EXIF or IPCT data without recompression of the image. In this case the workflow should the following:
 
1. Open the JPEG file using the [Open(String)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_LosslessJpegTransform_Open_1_bb3a7a4f.htm.md) method.
2. Update EXIF or IPTC data using [Exif](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_LosslessJpegTransform_Exif.htm.md) or [Iptc](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_LosslessJpegTransform_Iptc.htm.md) properties.
3. Save changes in a separate file using this method.
   
## See Also

### Reference

- [LosslessJpegTransform Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_LosslessJpegTransform.htm.md)
- [Write Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Codecs_LosslessJpegTransform_Write.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
- [LosslessJpegTransform.Exif](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_LosslessJpegTransform_Exif.htm.md)
- [LosslessJpegTransform.Iptc](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_LosslessJpegTransform_Iptc.htm.md)
- [LosslessJpegTransform.Open(Stream)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_LosslessJpegTransform_Open_1_bca7c9fe.htm.md)
- [LosslessJpegTransform.WriteCropped(Stream, Rectangle)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_LosslessJpegTransform_WriteCropped_2_b9ff8166.htm.md)
- [LosslessJpegTransform.WritePatched(Stream, Point, Bitmap)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_LosslessJpegTransform_WritePatched_3_8cd42e51.htm.md)
- [LosslessJpegTransform.WriteRotated(Stream, RotateFlipType)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_LosslessJpegTransform_WriteRotated_2_38dd4041.htm.md)
- [LosslessJpegTransform.WriteTransposed(Stream)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_LosslessJpegTransform_WriteTransposed_1_bca7c9fe.htm.md)
- [LosslessJpegTransform.WriteTransversed(Stream)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_LosslessJpegTransform_WriteTransversed_1_bca7c9fe.htm.md)
