Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-webapp-plug
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
base_platform_enterprise
gic-webapp-plug
Commits
95c4d28e
Commit
95c4d28e
authored
Sep 14, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pmd
parent
dfb7d21d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
UploadImgController.java
...java/com/gic/plug/web/controller/UploadImgController.java
+3
-2
ScreenBackStrategy.java
...in/java/com/gic/plug/web/strategy/ScreenBackStrategy.java
+1
-1
No files found.
src/main/java/com/gic/plug/web/controller/UploadImgController.java
View file @
95c4d28e
...
@@ -146,10 +146,11 @@ public class UploadImgController {
...
@@ -146,10 +146,11 @@ public class UploadImgController {
*/
*/
private
static
void
inputStreamToFile
(
InputStream
ins
,
File
file
)
{
private
static
void
inputStreamToFile
(
InputStream
ins
,
File
file
)
{
try
{
try
{
int
bufferSize
=
8192
;
OutputStream
os
=
new
FileOutputStream
(
file
);
OutputStream
os
=
new
FileOutputStream
(
file
);
int
bytesRead
=
0
;
int
bytesRead
=
0
;
byte
[]
buffer
=
new
byte
[
8192
];
byte
[]
buffer
=
new
byte
[
bufferSize
];
while
((
bytesRead
=
ins
.
read
(
buffer
,
0
,
8192
))
!=
-
1
)
{
while
((
bytesRead
=
ins
.
read
(
buffer
,
0
,
bufferSize
))
!=
-
1
)
{
os
.
write
(
buffer
,
0
,
bytesRead
);
os
.
write
(
buffer
,
0
,
bytesRead
);
}
}
os
.
close
();
os
.
close
();
...
...
src/main/java/com/gic/plug/web/strategy/ScreenBackStrategy.java
View file @
95c4d28e
...
@@ -19,7 +19,7 @@ public interface ScreenBackStrategy {
...
@@ -19,7 +19,7 @@ public interface ScreenBackStrategy {
* @param key
* @param key
* @param enterpriseId
* @param enterpriseId
* @return com.gic.plug.web.vo.ScreenBack
* @return com.gic.plug.web.vo.ScreenBack
* @exception
* @exception
ClassNotFoundException
*/
*/
ScreenBack
screenBack
(
String
compute
,
String
value
,
String
key
,
Integer
enterpriseId
)
throws
ClassNotFoundException
;
ScreenBack
screenBack
(
String
compute
,
String
value
,
String
key
,
Integer
enterpriseId
)
throws
ClassNotFoundException
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment