>>208
そのままでもいいなでは?

一応解決法

外で適当な名前でフィールドを確保
static byte[] buffer= new byte[1024];

中でそれを参照
byte[] data=buffer;