async (payload: { fileURL: string; fileId: Id<"files"> }) => {
const processImage = Effect.gen(function* () {
const httpClient = yield* HttpClient.HttpClient;
yield* Effect.log("Starting image processing");
const imageResponse = yield* httpClient
.pipe(HttpClient.filterStatusOk)
.get(payload.fileURL)
.pipe(
Effect.retry({
times: 3,
schedule: Schedule.exponential("1.5 seconds", 1.5),
}),
);
yield* Effect.log("Image blob successfully fetched");
// I need the image blob here
const imageBlob
}
async (payload: { fileURL: string; fileId: Id<"files"> }) => {
const processImage = Effect.gen(function* () {
const httpClient = yield* HttpClient.HttpClient;
yield* Effect.log("Starting image processing");
const imageResponse = yield* httpClient
.pipe(HttpClient.filterStatusOk)
.get(payload.fileURL)
.pipe(
Effect.retry({
times: 3,
schedule: Schedule.exponential("1.5 seconds", 1.5),
}),
);
yield* Effect.log("Image blob successfully fetched");
// I need the image blob here
const imageBlob
}