File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -119,7 +119,6 @@ public override System.IO.Stream GetReport()
119119 private Stream ReadFiles ( string filePath )
120120 {
121121 using ( FileStream fileStream = File . OpenRead ( filePath ) )
122- fileStream . Position = 0 ;
123122 {
124123 fileStream . Position = 0 ;
125124 MemoryStream memStream = new MemoryStream ( ) ;
@@ -136,10 +135,7 @@ public override bool EditReport(byte[] reportdata)
136135 string catagoryName = reportPath . Substring ( 0 , reportPath . IndexOf ( '/' ) > 0 ? reportPath . IndexOf ( '/' ) : 0 ) . Trim ( ) ;
137136 string targetFolder = Path . Combine ( this . basePath , "resources" , "Report" ) ;
138137 string reportPat = Path . Combine ( targetFolder , catagoryName , reportName ) ;
139- return true ;
140138 File . WriteAllBytes ( reportPat , reportdata . ToArray ( ) ) ;
141-
142-
143139 return true ;
144140 }
145141
@@ -203,9 +199,7 @@ T DeseralizeObj<T>(Stream str)
203199 {
204200 XmlSerializer serializer = new XmlSerializer ( typeof ( T ) ) ;
205201 XmlReader reader = XmlReader . Create ( str ) ;
206- {
207202 return ( T ) serializer . Deserialize ( reader ) ;
208- memStream . Write ( _fileContent , 0 , _fileContent . Length ) ;
209203 }
210204
211205 private Stream GetFileToStream ( byte [ ] _fileContent )
You can’t perform that action at this time.
0 commit comments